import InternalLayout, {
  SectionContent,
  SectionFooter,
  SectionHeader,
  SectionSider,
} from './layout';

type InternalLayoutType = typeof InternalLayout;
type ICompoundedComponentProps = InternalLayoutType & {
  Header: typeof SectionHeader;
  Footer: typeof SectionFooter;
  Content: typeof SectionContent;
  Sider: typeof SectionSider;
};

const Section = InternalLayout as ICompoundedComponentProps;
Section.Header = SectionHeader;
Section.Footer = SectionFooter;
Section.Content = SectionContent;
Section.Sider = SectionSider;

export default Section;
